package org.dromara.product.domain.bo;

import org.dromara.product.domain.KyStockInRelations;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;

/**
 * 入库关联业务对象 ky_stock_in_relations
 *
 * @author kuyu
 * @date 2023-12-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = KyStockInRelations.class, reverseConvertGenerate = false)
public class KyStockInRelationsBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long productId;

    /**
     *
     */
//    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long warehouseId;

    /**
     * 入库前数量
     */
//    @NotNull(message = "入库前数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal beforeNum;

    /**
     * 入库批次号
     */
//    @NotBlank(message = "入库批次号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bathInNo;

    /**
     * 入库id
     */
//    @NotNull(message = "入库id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long inRecordId;

    /**
     * 入库编号
     */
//    @NotBlank(message = "入库编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String inRecordNo;

    /**
     * 出库状态：拒绝-1,申请0,审核中1,通过2
     */
//    @NotNull(message = "出库状态：拒绝-1,申请0,审核中1,通过2不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 审核等级
     */
//    @NotNull(message = "审核等级不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer approveLevel;

    /**
     * 单据打印次数
     */
//    @NotNull(message = "单据打印次数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long printNum;

    /**
     *
     */
//    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long mid;

    /**
     * 供应商id
     */
//    @NotNull(message = "供应商id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long supplyId;

    /**
     *
     */
//    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String images;

    /**
     * 调拨关联id
     */
//    @NotNull(message = "调拨关联id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long transOutId;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal number;

    /**
     *
     */
//    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal price;

    /**
     * 总价
     */
//    @NotNull(message = "总价不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal totalMoney;

    /**
     *
     */
//    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String item;

    /**
     * 商品名称{name:'',categoty:'',unit:''}
     */
//    @NotBlank(message = "商品名称{name:'',categoty:'',unit:''}不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productInfo;

    /**
     *
     */
//    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long zoneId;

    /**
     *
     */
//    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String mark;

    /**
     *
     */
//    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long inTypeId;

    /**
     *
     */
//    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String custom;

    /**
     *
     */
//    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long fromWarehouseId;

    /**
     *
     */
//    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long fromZoneId;


}
